﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.Goods
{
    public partial class Show :PageBase
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string Goods_ID = strid;
                    ShowInfo(Goods_ID);
                }
            }
        }

        private void ShowInfo(string Goods_ID)
        {
            BLL.Goods_List bll = new BLL.Goods_List();
            Model.Goods_List model = bll.GetModel(Goods_ID);
            this.lblGoods_ID.Text = model.Goods_ID;
            this.lblGT1_ID.Text = model.GT1_ID;
            this.lblGT2_ID.Text = model.GT2_ID;
            this.lblGT3_ID.Text = model.GT3_ID;
            this.lblGT4_ID.Text = model.GT4_ID;
            this.lblGoods_Name.Text = model.Goods_Name;
            imgGoods.ImageUrl = Common.GoodsImageFolder() + "/" + model.Goods_Image;
            this.lblGoods_Description.Text = model.Goods_Description;
            this.lblGoods_Unit.Text = model.Goods_Unit;

        }
    }
}